package cn.jiyun.fenlei.product.service;

import cn.jiyun.model.Base;
import cn.jiyun.model.Product;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ProductService extends IService<Product> {
    List<Product> findAll(Product product);

    void updatestatus(Integer id);

    List<Product> yijifindAll();

    List<Product> category();

    Page<Product> products(Integer page, Integer limit, Integer cid, Integer sid);

    List<Product> findByid(Integer id);

    List<Base> findByidBase(Integer id);

//    String uploader(MultipartFile file);
}
